<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
		<title>单录单的详情和添加页面</title>
	</head>
	<body onresize="resizeGrid();">
		<div id='${m.prefix}_a_saddDiv'>
			<div id='${m.prefix}_a_parentPanel' title="${m.panelTitle}" style="padding-bottom: 100px;" >
				<div style="position: absolute; z-index: 2; background-color: white; width:95%; top: 32px;">
					<table cellpadding="0" cellspacing="0" style="width: 100%; height: 100%; ">
						<tr>
							<td>
								<div id="${m.prefix}_totalNum" class="shangXia" style="float: left;visibility:hidden;">
									<a style="cursor: pointer;" onclick="upDownPage(this)" sflag="s" pre='${m.prefix}' dsId='${m.dsId}' flag="upPage">上一条</a>|
									<a style="cursor: pointer;" sflag="s" onclick="upDownPage(this)" pre='${m.prefix}' dsId='${m.dsId}'flag="downPage">下一条</a>
									<span id="currentPage"></span>/<span id="lastPage"></span>
								</div>
							</td>
							<td id='${m.prefix}_tdFind' align="right">
								<!-- 按钮的生成 -->
								<div align="right" style="vertical-align: top; margin-right: 15px;" id="${m.prefix}_S_UBUTN">
									<!-- 生成加载公用的按钮 -->
									<c:forEach items="${m.butnList}" var="but">
										<!-- 分组的权限的按钮 -->
										<c:if test="${not empty but.IS_GROUP && but.IS_GROUP =='T' && not empty but.GROUP_ID}">
											<a href="javascript:void(0)"  isbutn="true" iconCls="${but.iconCls}"  code='${m.prefix}_${but.BUT_CODE}' id="mb2" plain="false" menu="#${but.GROUP_ID}" class="easyui-menubutton" >${but.BUTN_NAME}</a>
											<div id="${but.GROUP_ID}" style="width: 120px;">
												<c:forEach items="${m.butnList}" var="butn">
													<c:if test="${butn.IS_GROUP != 'T' && not empty butn.GROUP_ID && butn.GROUP_ID==but.GROUP_ID}">
														<c:if test="${empty butn.SCRIPT_FUNC}">
															<div  code='${m.prefix}_${butn.BUT_CODE}'  isbutn="true" iconCls="${butn.iconCls}" pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='1' oflag="1" sflag="s" right='${butn.BUT_RIGHT}'>${butn.BUTN_NAME}</div>
														</c:if>
														<c:if test="${not empty butn.SCRIPT_FUNC}">
															<div onclick="${butn.SCRIPT_FUNC}"  isbutn="true"  iconCls="${butn.iconCls}" code='${m.prefix}_${butn.BUT_CODE}' pre='${m.prefix}' dsid='${m.dsId}' tit='${m.panelTitle}' flag='1' oflag="1" sflag="s" right='${butn.BUT_RIGHT}'>${butn.BUTN_NAME}</div>
														</c:if>
													</c:if>
												</c:forEach>
											</div>
										</c:if>
										<!-- 非分组公用按钮 -->
										<c:if test="${empty but.IS_GROUP &&  empty but.GROUP_ID}">
											<c:if test="${empty but.SCRIPT_FUNC}">
												<a class='easyui-linkbutton'   isbutn="true" iconCls="${but.iconCls}" id="${m.prefix}_${but.BUT_CODE}" href="#" onclick="" oflag="1" sflag="s" code='${m.prefix}_${but.BUT_CODE}' pre='${m.prefix}' dsid='${m.dsId}' flag='1' right='${but.BUT_RIGHT}'>${but.BUTN_NAME}</a>
											</c:if>
											<c:if test="${not empty but.SCRIPT_FUNC}">
												<a class='easyui-linkbutton'   isbutn="true" iconCls="${but.iconCls}" id="${m.prefix}_${but.BUT_CODE}" 	onclick="${but.SCRIPT_FUNC}" oflag="1" sflag="s" code='${m.prefix}_${but.BUT_CODE}' pre='${m.prefix}' 	dsid='${m.dsId}' flag='1' right='${but.BUT_RIGHT}'>${but.BUTN_NAME}</a>
											</c:if>
										</c:if>
									</c:forEach>
									<!-- 页面的返回按钮 -->
									<a class='easyui-linkbutton' iconCls="icon-back"  onclick="return closePanel(this)" code='rollBack' sflag="s" pre='${m.prefix}' dsid='${m.dsId}' style="float: right; margin-left: 3px;">返回</a>
								</div>
							</td>
						</tr>
					</table>
				</div>
				<div id="${m.prefix}_a_costPanel" style="width: 90%; height: auto; margin-left: 10px; margin-top: 30px; position: relative;">
					<!-- 用于显示的单据的的状态图片 -->
					<span id="${m.prefix}_imgDIv"> <!--用于显示审核和审批的图片-->
						<img src="" id="showImg" style="position: absolute; z-index: 2; left: 164px; top: -29px;" />
						<span id="status" style="position: absolute; z-index: 2; left: 141px;top:-10px;">
						 <input id="verDesMan" readonly="readonly" style="background-color: transparent; border: 0; text-align: center; font-weight: bold; line-height: 10px;font-size: 10px;" />
							<br /> 
						<input id="verDesDate" readonly="readonly" style="background-color: transparent; border: 0; text-align: center; font-weight: bold; line-height: 10px;font-size: 10px;float:left;" />
						</span><!-- 材料出入库的出入库图片显示 -->  
						<img src="" id="rkImg" style="display: block; margin-left: 241px; position: absolute; top: -29px; z-index: 2;" />
						<span id="rkstatus" style="position: absolute; z-index: 2; left: 219px; top: -14px;">
							<input id="rkMan" readonly="readonly" style="background-color: transparent; border: 0; text-align: center; font-weight: bold; color: #00900; line-height: 10px;font-size: 10px;" />
							<br /> 
							<input id="rkDate" readonly="readonly" style="background-color: transparent; border: 0; text-align: center; font-weight: bold; color: #00900; line-height: 10px;font-size: 10px;"  />
						</span> 
					</span>

					<table cellpadding="0" cellspacing="0" style="width: 100%;">
					
						<tr>
							<td>
								<form id="${m.prefix}_A_AFORM" dsId="${m.dsId}">
									<div class='tableBord' id="${m.prefix}_A_ADATAL" style="padding-bottom:50px;"></div>
								</form>
							</td>
						</tr>
					</table>
				</div>
			</div>
			<input type="hidden" id="${m.prefix}_modelType" value="0"/>
			<input type="hidden" id="${m.prefix}_adsId" value="${m.dsId}" />
			<input type="hidden" id="${m.prefix}_atype" value="${m.type}" />
			<input type="hidden" id="${m.prefix}_ajsUrl" value="${m.jsUrl}" />
			<input type="hidden" id="${m.prefix}_aprefix" value="${m.prefix}" />
			<input type="hidden" id="${m.prefix}_ainitFunc" value="${m.initFunc}" />
			<input type="hidden" id="${m.prefix}_aainitFunc" value="${m.ainitFunc}" />
			<input type="hidden" id="${m.prefix}_akeyValue" value="${m.keyValues}" />
		</div>
	</body>
</html>